<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Jedrzej\Pimpable\PimpableTrait;

class WechatNewsCategory extends Model
{
    use HasFactory;
    use PimpableTrait;
    use SoftDeletes;
    /**
     * 默认排序
     */
    protected $defaultSortCriteria = ['id,desc'];

    /**
     * 可排序字段
     */
    public $sortable = [
        'created_at',
        'id',
        'status',
        'news_id',
        'news_id',
        'news_id',
    ];

    /**
     * 可搜索字段
     */
    public $searchable = [
        'cate_name',
        'status',
        'news_id',
    ];
    /**
     * 图文消息管理表可批量复制字段
     */
    protected $fillable =[
        'cate_name',
        'order',
        'status',
        'news_id',
        'cate_image',
    ];
}
